package com.zzptc.zzsgz.bdsjws.fragments;

import android.view.View;
import android.widget.Toast;

import com.zzptc.zzsgz.bdsjws.MyApplication;
import com.zzptc.zzsgz.bdsjws.R;
import com.zzptc.zzsgz.bdsjws.activities.OneKey_SOS_Activity;
import com.zzptc.zzsgz.bdsjws.fragments.base.BaseFragment;

/**
 * Created by Administrator on 2017/5/27.
 */

public class FirstFragment extends BaseFragment{
    @Override
    public int getXML() {
        return R.layout.first_fragment_layout;
    }

    @Override
    public void initView() {
        getThisView().findViewById(R.id.btn_first).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
//                getFragmentManager().beginTransaction().add(R.id.framelayout_one_key,new SecondFragment()).commit();
                if(getActivity() instanceof OneKey_SOS_Activity){
                    ((OneKey_SOS_Activity) getActivity()).replace();
                }
            }
        });
    }

    @Override
    public void initDate() {

    }

    
}
